package com.spring.mongo.model;

import org.springframework.data.mongodb.core.mapping.Document;

import com.alibaba.fastjson.JSON;

@Document(collection = "income_detail")
public class IncomeDetail extends MongoCommonBean {

	String type;
	Double price;
	Long ct;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Long getCt() {
		return ct;
	}

	public void setCt(Long ct) {
		this.ct = ct;
	}

	public int getFenPrice() {
		Double d = this.price * 100;
		return d.intValue();
	}

	@Override
	public String toString() {
		return "[IncomeDetail:" + JSON.toJSONString(this) + "]";
	}

}
